package jpm.trade;

import jpm.common.JPMException;
import jpm.trade.TradeHelper.Operation;

import org.junit.Test;

public class TradeTest {
	@Test(expected = JPMException.class)
	public void throwsExceptionWhenTradeIdIsZero() {

		new Trade(0, 1, "MSFT", 100, true, "ACC-123", Operation.NEW);
	}
	
	@Test(expected = JPMException.class)
	public void throwsExceptionWhenTradeVersionIsZero() {

		new Trade(1, 0, "MSFT", 100, true, "ACC-123", Operation.NEW);
	}		
}
